package com.twang.stock.service.abhs;


import com.twang.stock.entity.Course;
import com.twang.stock.mapper.CourseMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class CourseService {

    @Resource
    private CourseMapper courseMapper;

    // 查询所有课程
    public List<Course> getAllCourses() {
        return courseMapper.selectAll();
    }
}
